<div class="row">

    <ul class="thumbnails">

        <?php
            $i = 0;
            foreach ($top_offer as $hotel) :
                if ($i == 2)
                    break;
                $i++;
                $href = lang_url('top_offer/' . $hotel['url_name'] . '-' . $hotel['ID']);
                ?>


                <li class="span4">

                    <?php
                    $thumbnail = thumb_filename($hotel['photo_name'], 300, 178, CMS_GALLERY, $hotel['photo_path']);
                    ?>

                    <a class="thumbnail" href="<?= $href ?>">

                        <img src="<?= $thumbnail ?>" alt="<?= $hotel['title'] ?>" class="img-rounded" />

                        <div class="black">

                            <h3>
                                <?= str_replace("- Montenegro", "", $hotel['title']) ?> 
                            </h3>

                        </div>

                    </a>
                </li>

            <?php endforeach; ?> 

    </ul>

</div>